/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package game.stategie;

import game.plateau.Plateau;
import game.support.Cochon;
import game.support.DernierEmplacementAtteintException;
import game.support.Emplacement;

/**
 *
 * @author bloodydark
 */
public class StrategieTroisNoir implements Strategie {

    public boolean evaluer(Plateau plateau, Cochon cochon) throws DernierEmplacementAtteintException {
        Emplacement premierEmplacementOccupe = plateau.premierEmplacementOccupe();
        Boolean rejouer = cochon.estSur(premierEmplacementOccupe);

        for (int i = 0; i < 3; i++) {
            System.out.println(" >>> Cochon avance");
            cochon.avancer();
        }

        return rejouer;
    }

}
